#include "header.h"
int tong(int a[], int n)
{
    int i,tong=0;
    for(i=0;i<n;i++)
    {
                    if(a[i]%2!=0) tong+=a[i];
                    else tong-=a[i];
                    }
    return tong;
}
